package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Reservation;
import org.springframework.stereotype.Service;

import java.util.List;


public interface IReservationService extends IService<Reservation> {
    /**
     * 分页查询预约信息
     * @param reservation
     * @return
     */
    List<Reservation> selectReservationPage(Reservation reservation);
    /**
     * 新增预约信息
     *
     * @param reservation 预约信息
     * @return 结果
     */
    int insertReservation(Reservation reservation);
    /**
     * 取消预约
     *
     * @param id
     * @return 结果
     */
    void updateReservationStatus(Long id);
    /**
     * 查询取消预约数量
     *
     * @return 数量
     */
    Long selectReservationCount();

}
